/*
 * @Author: thinkido 4077725@qq.com
 * @Date: 2022-07-07 18:59:50
 * @LastEditors: thinkido 4077725@qq.com
 * @LastEditTime: 2022-07-11 21:58:53
 * @FilePath: \vue3vite-framework\src\store\mutations.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
export default {
    setTitle(state,title){
        state.title = title
    },
    setValue(state,payload){ //设置通用属性的值，减少代码。
        for (const key in payload) {
            if (Object.hasOwnProperty.call(payload, key)) {
                const value = payload[key];
                state[key] = value ;
                // console.log('setvalue:',key,value)
            }
        }
    }
}